#ifndef GLOBALDEFINES_H
#define GLOBALDEFINES_H

#include "dxManager.h"
#include "diManager.h"
#include "DXAudioManager.h"

struct CUSTOMVERTEX
{
    float x, y, z, rhw;
    D3DCOLOR color;
};

struct WayPoint
{
	D3DXVECTOR3 m_direct;
};

const float framex = 1000.0f;
const float framez = 1000.0f;

const D3DXCOLOR  RED( D3DCOLOR_XRGB(255,   0,   0) );
const D3DXCOLOR  BLACK( D3DCOLOR_XRGB(  0,   0,   0) ); 

const D3DMATERIAL9 m_mtrl = {RED, RED, RED, BLACK, 2.0f};

inline DWORD FLOAT_TO_DWORD( FLOAT f ) { return *((DWORD*)&f); }

#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW|D3DFVF_DIFFUSE)

// Get a reference to the Direct input Manager 
static diManager &diMgr = diManager::getInstance();

// Get a reference to the DirectX Manager 	
static DxManager &dxMgr = DxManager::getInstance();

// Get a reference to the DirectSound Manager 	
static dxSound   &dxAmgr = dxSound::getInstance();

#endif